[Smarty] Looking for variables which aren't assigned.

Posted by Kel on Stack Overflow See other posts from Stack Overflow or by Kel
Published on 2010-04-26T20:51:38Z Indexed on 2010/04/26 20:53 UTC
Read the original article Hit count: 196

Filed under:
|
|

What could happen if my template looks for variables which weren't assigned?

For example:

var uwfs_id = '{$tpl_uwfs_id}';

This snippet is from my javascript code. I outputted the value and it is simply empty. I know I could use isset(). But I couldn't find anything about how Smarty handles non-existing variables. So, what happens if template can't find a variable, because it wasn't assigned?

© Stack Overflow or respective owner

Related posts about php

Related posts about smarty